<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * @category	Oceanpayment
 * @package 	Oceanpayment_Qiwi
 */
?>

<script type="text/javascript">
function setCountryCode(obj){
    var t = document.getElementById("telcode"); 
    var tvalue = t.options[t.selectedIndex].value;
    document.getElementById("qiwiCountryCode").value=tvalue;
}
</script>

<div class="form-divst">
    <p onclick="IsChecked('oceanpayment_qiwi'),payment.switchMethod('oceanpayment_qiwi');" >
    <img src="<?php echo $this->getSkinUrl('images/custom/payment_qiwi.jpg') ?>" />
    <i></i>
    </p>
</div>
<ul class="form-divst" id="payment_form_<?php  echo $this->getMethodCode(); ?>" style="display:none;"><li>
    <?php $_code=$this->getMethodCode() ?>
    <div style="clear:both;">
        <div class="qiwi_payment_country">
        <span><?php echo $this->__('ContryCode')?>:</span><select name="telcode" id="telcode" onchange="setCountryCode();">
                <option value="7"><?php echo $this->__('Russian Federation')?></option>
                <option value="9955"><?php echo $this->__('Georgia')?></option>
                <option value="507"><?php echo $this->__('Panama')?></option>
                <option value="44"><?php echo $this->__('Great Britain')?></option>
                <option value="992"><?php echo $this->__('Tajikistan')?></option>
                <option value="370"><?php echo $this->__('Lithuania')?></option>
                <option value="972"><?php echo $this->__('Israel')?></option>
                <option value="996"><?php echo $this->__('Kyrgyzstan')?></option>
                <option value="380"><?php echo $this->__('Ukraine')?></option>
                <option value="84"><?php echo $this->__('Vietnam')?></option>
                <option value="90"><?php echo $this->__('Turkey')?></option>
                <option value="994"><?php echo $this->__('Azerbaijan')?></option>
                <option value="374"><?php echo $this->__('Armenia')?></option>
                <option value="371"><?php echo $this->__('Latvia')?></option>
                <option value="91"><?php echo $this->__('India')?></option>
                <option value="66"><?php echo $this->__('Thailand')?></option>
                <option value="373"><?php echo $this->__('Moldova')?></option>
                <option value="1"><?php echo $this->__('United States')?></option>
                <option value="81"><?php echo $this->__('Japan')?></option>
                <option value="998"><?php echo $this->__('Uzbekistan')?></option>
                <option value="77"><?php echo $this->__('Kazakhstan')?></option>
              </select> 
        <input name="qiwiCountryCode" id="qiwiCountryCode" type="text" value="7" readonly="readonly" size="5">
        </div>
        <div class="qiwi_payment_username">
        <span><?php echo $this->__('Username')?>:</span><input name="qiwiUsername" id="qiwiUsername" type="text" size="20" maxlength="12">
        </div>
    </div>
    
    </li>
</ul>
